package zuoye0515;

/**
 * USB风扇
 * 
 * @author Y
 *
 */
public class USBFan implements USB {
	private String name;
	private double speed;

	public USBFan(String name, double speed) {
		this.name = name;
		this.speed = speed;
	}

	public void start() {
		System.out.println(name + "的USB风扇接在了usb口上");
	}

	public void work() {
		System.out.println(name + "的USB风扇正在以每秒" + speed + "的转速正在旋转");
	}

	public void stop() {
		System.out.println("拔出小风扇,风扇停止运行...");
	}

}
